<template>
  <div>MyRight组件</div>
</template>

<script setup>
import { onActivated, onDeactivated } from "vue";

onActivated(() => {
  console.log("MyRight组件被激活了");
});
onDeactivated(() => {
  console.log("MyRight组件被缓存了");
});
</script>

<style lang="scss" scoped></style>
